const request = require('./request');

module.exports = {
  projects: () => {
    return request({
      method: 'GET',
      url: '/users/' + process.env.GRIDSOME_API_GITHUB_NAME + `/repos?page=1&per_page=100`
    });
  },
  single: (name) => {
    return request({
      method: 'GET',
      url: '/repos/' + process.env.GRIDSOME_API_GITHUB_NAME + '/' + name + '/contents/README.md'
    });
  }
}